<!--{eval 
    $_HEAD['title'] = $day_arr_lng[$day] . $filter_arr_lng[$filter] . '点评列表';
}-->
{template modoer_header}
<div id="body">
    <div class="link_path">
        <em>共找到 <span class="font_2">$total</span> 个点评</em>
        <a href="{url modoer/index}">{lang global_index}</a>
        &raquo;
        {print implode(' &raquo; ', $urlpath)}</span>
    </div>

    <div class="review_left">
		<div class="g-list-category">
			<div class="g-list-category-type">
                <!--{if $category}-->
				<h3>分类:</h3>
				<ul class="g-list-category-class">
					<!--{loop $category $key $val}-->
					<li$active[category][$key]><a href="{url review/list/type/$type/pid/$key/day/$day/filter/$filter}">$val</a></li>
					<!--{/loop}-->
				</ul>
				<div class="clear"></div>
                <!--{/if}-->
				<h3>范围:</h3>
				<ul class="g-list-category-class">
					<!--{loop $day_arr_lng $key $val}-->
					<li$active[day][$key]><a href="{url review/list/type/$type/pid/$pid/day/$key/filter/$filter}">$val</a></li>
					<!--{/loop}-->
				</ul>
				<div class="clear"></div>
				<h3>筛选:</h3>
				<ul class="g-list-category-class">
					<!--{loop $filter_arr_lng $key $val}-->
					<li$active[filter][$key]><a href="{url review/list/type/$type/pid/$pid/day/$day/filter/$key}">$val</a></li>
					<!--{/loop}-->
				</ul>
				<div class="clear"></div>
			</div>
		</div>
		<div class="subrail mt10">
			排序方式:
            <!--{loop $orderby_arr_lng $key $val}-->
            <span$active[orderby][$key]><a href="javascript:;" onclick="list_display('review_list_orderby','$key')">$val</a></span>
            <!--{/loop}-->
		</div>

        <div class="mainrail review-view">
            <!--{dbres $list $val}-->
            <div class="review">
                {eval if($val[hide_name])$val[uid]=0;}
                <div class="member m_w_item">
                    <a href="{url space/index/uid/$val[uid]}" show="member_vcard" rel="{url member/vcard/uid/$val[uid]}"><img src="{print get_face($val[uid])}" class="face"></a>
                    <ul>
                        <!--{if $val[uid]}-->
                        <li>{print:member group(groupid/$val[groupid])}</li>
                        <li>积分:<span>$val[point]</span></li>
                        <!--{else}-->
                        <li>{if $val[hide_name]}匿名{else}游客{/if}</li>
                        <!--{/if}-->
                    </ul>
                </div>
                <div class="field f_w_item">

                    <div class="feed">

                    <!--{if $val[uid]}-->
                        <em><a href="javascript:member_follow($val[uid]);">加关注</a>, <a href="javascript:send_message($val[uid]);">发短信</a>, <a href="javascript:add_friend($val[uid]);">加好友</a></em>
                        <span class="member-ico"><a href="{url space/index/uid/$val[uid]}">$val[username]</a></span>&nbsp;
                        <!--{else}-->
                        <span class="font_3">{if $val[hide_name]}匿名{else}游客{/if}({print preg_replace("/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/","\\1.\\2.*.*", $val[ip])})</span>
                        <!--{/if}-->
                        在&nbsp;{date $val[posttime], 'w2style'}&nbsp;点评了&nbsp;<strong><a href="{print:review typeurl(idtype/$val[idtype]/id/$val[id])}">$val[subject]</a></strong>
                    </div>

                    <!--{if display('review:viewdigest',array('digest'=>$val[digest],'uid'=>$val[uid]))}-->
                    <div class="info{if $val[digest]} review-digest{/if}">
                        <ul class="score">
                            <!--{get:item _val=reviewopt(catid/$val[pcatid])}-->
                            <li>$_val[name]</li><li class="start{print cfloat($val[$_val[flag]])}"></li>
                            <!--{/get}-->
                        </ul>
                        <div class="clear"></div>
                        <!--{if $val[title]!=$val[subject]}-->
                        <h4 class="title"><a href="{url review/detail/id/$val[rid]}">$val[title]</a></h4>
                        <!--{/if}-->
                        <!--{if $val[pictures]}-->
                        <div class="pictures">
                            <!--{eval $val[pictures] = unserialize($val[pictures]);}-->
                            <!--{loop $val[pictures] $pic}-->
                            <a href="{URLROOT}/$pic[picture]"><img src="{URLROOT}/$pic[thumb]" onmouseover="tip_start(this);" /></a>
                            <!--{/loop}-->
                        </div>
                        <!--{/if}-->
                        <div style="min-height:50px;">
                            <!--{if $val[voice_file]}-->
                            <div class="voicefile" id="voicefile_$val[rid]" style="margin:5px 0;">
                                <object type="application/x-shockwave-flash" data="{URLROOT}/static/images/dewplayer-mini.swf?mp3={URLROOT}/$val[voice_file]" width="160" height="20" id="dewplayer-mini"><param name="wmode" value="transparent" /><param name="movie" value="{URLROOT}/static/images/dewplayer-mini.swf?mp3={URLROOT}/$val[voice_file]" /></object>
                            </div>
                            <!--{/if}-->
                            <!--{eval 
                                $reviewurl = '...<a href="' . url("review/detail/id/".$val[rid]) . '">[查看全文]</a>';
                                $val[content] = trimmed_title($val[content],500,$reviewurl);
                            }-->
                            <p>{print nl2br($val[content])}</p>
                            <ul class="params">
                                <!--{if $val[price] && $catcfg['useprice']}-->
                                <li>$catcfg[useprice_title]: <span class="font_2">$val[price]{$catcfg[useprice_unit]}</span></li>
                                <!--{/if}-->
                                <!--{eval $detail_tags = $val['taggroup'] ? @unserialize($val['taggroup']) : array();}-->
                                <!--{loop $taggroups $_key $_val}-->
                                    <!--{if $detail_tags[$_key]}-->
                                        <li>$_val[name]:
                                        <!--{loop $detail_tags[$_key] $tagid $tagname}-->
                                            <a href="{url item/tag/tagname/$tagname}">$tagname</a>
                                        <!--{/loop}-->
                                        </li>
                                    <!--{/if}-->
                                <!--{/loop}-->
                            </ul>
                        </div>
                        <div id="flowers_$val[rid]"></div>
                        <div id="responds_$val[rid]"></div>
                        <div class="operation">
                            <span class="respond-ico"><a href="javascript:get_respond('$val[rid]');">回应</a></span>(<span class="font_2" id="respond_$val[rid]">$val[responds]</span> 条)&nbsp;
                            <span class="flower-ico"><a href="javascript:add_flower($val[rid], $val[pcatid]);">鲜花</a>(<a href="javascript:get_flower($val[rid], $val[pcatid]);"><span id="flower_$val[rid]" class="font_2">$val[flowers]</span> 朵</a>)</span>&nbsp;
                            <a href="javascript:post_report($val[rid], $val[pcatid]);">举报</a>&nbsp;
                        </div>
                    </div>
                    <!--{else}-->
                    <div>
                        <!--{eval $val[content] = trimmed_title($val[content],50,'...');}-->
                        <p style="margin:10px;color:#323232;line-height:18px;">$val[content]</p>
                    </div>
                    <div class="review-digest-message">
                        <!--{if !$user->isLogin}-->
                        <a href="javascript:dialog_login();">登录后查看精华点评全部内容</a>
                        <!--{else}-->
                        <a href="javascript:review_view_digst($val[rid]);">查看精华点评全部内容</a>（第一次查看需要购买）
                        <!--{/if}-->
                    </div>
                    <!--{/if}-->
                </div>
                <div class="clear"></div>
            </div>
            <!--{/dbres}-->
            <!--{if $multipage}--><div class="multipage">$multipage</div><!--{/if}-->

            <!--{if !$total}-->
            <div class="messageborder">近期没有会员进行点评。</div>
            <!--{/if}-->
        </div>
    </div>

    <div class="review_right">
		<div class="mainrail rail-border-3">
			<div class="mailrail">
                <div class="review-side-search">
                    <form method="get" action="{URLROOT}/index.php">
                        <input type="hidden" name="m" value="review" />
                        <input type="hidden" name="act" value="list" />
                        <input type="text" name="keyword" class="t_input" value="$keyword" />&nbsp;
                        <button type="submit" class="button">搜索点评</button>
                    </form>
                </div>
            </div>
            <!--{if $uid > 0}-->
            {template space_side}
            <!--{else}-->
            <div class="mainrail">
                <h3 class="rail-h-2 rail-h-bt-3">点评专家</h3>
                <ul class="rail-list">
                    <!--{get:modoer val=table(table/dbpre_members/select/uid,username,reviews/where/reviews>0/orderby/reviews DESC/rows/10/cachetime/3600)}-->
                    <li><img src="{print get_face($val[uid]);}" width="20" height="20" /><cite>$val[reviews]&nbsp;点评</cite><a href="{url space/index/uid/$val[uid]}">$val[username]</a></li>
                    <!--{/get}-->
                </ul>
                <div class="clear"></div>
            </div>
            <div class="mainrail">
                <h3 class="rail-h-2 rail-h-bt-3">本月活跃会员</h3>
                <!--{eval
                    $begintime = date('Ymd', $_G['timestamp'] - 30 * 24 * 3600);
                    $endtime = date('Ymd', $_G['timestamp']);
                }-->
                <ul class="rail-faces">
                    <!--{get:modoer val=sql(sql/SELECT uid,username,SUM(reviews) as reviews FROM dbpre_activity WHERE dateline BETWEEN $begintime AND $endtime GROUP BY username ORDER BY reviews DESC,subjects DESC/rows/9/cachetime/3600)}-->
                    <li><div><a href="{url space/index/uid/$val[uid]}"><img src="{print get_face($val[uid])}" /></a><a href="{url space/index/uid/$val[uid]}" title="$val[username]"></div><span>$val[username]</span></a></li>
                    <!--{/get}-->
                </ul>
                <div class="clear"></div>
            </div>
            <!--{/if}-->
		</div>
    </div>

    <div class="clear"></div>

</div>
<!--{eval footer();}-->